"use strict"

/**
 * 黑龙江垦区采购网爬虫
 *  网址找不到
 */

var Base = require("./base");
var kq_spider = new Base();
kq_spider.name = "黑龙江垦区政府采购网";
kq_spider.encode = "GBK";

kq_spider.getPageUrl = function(pg){
    return "http://www.nkzb.com/KenFengPageList.aspx?more=zbgs&page=" + pg
};

kq_spider.getItems = function($){
    var items = [];
    $(".ggwfonttype").each(function (index, ele) {
                var e = $(ele);
                var item = {};
                 item.title = e.text().substring(30);
                 item.url = "http://www.nkzb.com/" + e.attr("href");
                 item.source = kq_spider.name;
                 items.push(item);
            });
    return items;
};

exports = module.exports = kq_spider;